﻿CREATE TABLE [dbo].[vdn_MSTProdGroup] (
    [ProdGrpID]       INT       IDENTITY (1, 1) NOT NULL,
    [ProdGroup]       CHAR (6)  NOT NULL,
    [Description]     CHAR (50) NOT NULL,
    [Void]            CHAR (1)  NOT NULL,
    [Active]          BIT       NOT NULL,
    [ParentProdGrpID] INT       NULL
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines a product group', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_MSTProdGroup';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The primary key.  The Product group ID uniquely identifies each product group.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_MSTProdGroup', @level2type = N'COLUMN', @level2name = N'ProdGrpID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The product group abbreviation', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_MSTProdGroup', @level2type = N'COLUMN', @level2name = N'ProdGroup';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The description for the ProdGroup', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_MSTProdGroup', @level2type = N'COLUMN', @level2name = N'Description';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'1 if the product group is being used, 0 otherwise.', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'vdn_MSTProdGroup', @level2type = N'COLUMN', @level2name = N'Active';

